package com.ccl.iot.device;

/**
 * @description：安防主机的一些常量
 * @author： HD
 * @time：2017/5/5
 */

public class IOTSecurityArmConst {


    public static final int BASE_SIZE = 24;
    public static final int ARMPARTITIONINFO_SIZE = 6;
    public static final int ARMPARTITIONINFO_START = 32;
    public static final int ARMZONEINFO_SIZE = 1;
    public static final int ARMZONEINFO_START = 80;


    //----------------------------分区状态----------------------
    public static final int EARM_STATE_UNKNOWN = 0;     //未知
    public static final int EARM_STATE_DISARM = 1;      //已撤防
    public static final int EARM_STATE_ARM = 2;         //已布防
    public static final int EARM_STATE_ALARMING = 3;    //警报中
    public static final int EARM_STATE_FAILURE = 4;     //故障


    //---------------------------布防类型--------------
    public static final int EARM_TYPE_MANUAL = 0;         //人工布防
    public static final int EARM_TYPE_AUTO = 1;           //自动布防
    public static final int EARM_TYPE_DELAY = 2;          //延时布防
    public static final int EARM_TYPE_FORCE = 3;          //强制布防
    public static final int EARM_TYPE_STAY_BEHIND = 4;    //留守布防
    public static final int EARM_TYPE_IMMEDIATELY = 5;    //立即布防


    //---------------------------防区类型-------------------
    public static final int EALARM_TYPE_NORMAL = 0;	      //一般防区
    public static final int EALARM_TYPE_FIRE = 1;         //火警防区
    public static final int EALARM_TYPE_24HOUR = 2; 	  //24小时防区
    public static final int EALARM_TYPE_FOLLOW = 3; 	  //跟随防区
    public static final int EALARM_TYPE_DELAY = 4; 	      //延时防区
    public static final int EALARM_TYPE_INSIDE = 5;  	  //内部防区
    public static final int EALARM_TYPE_LIVE = 6; 	      //现场防区


    //---------------------------防区状态类型----------------
    public static final int EALARM_STATE_NORMAL = 0;	  //正常
    public static final int EALARM_STATE_ALARMING = 1;    //警报中
    public static final int EALARM_STATE_BYPASS = 2;	  //已旁路
    public static final int EALARM_STATE_BATTERYLOW = 3;  //电池电量低
    public static final int EALARM_STATE_FAILURE = 4;	  //故障


    public static final int EARM_CODE_OK = 0;
    public static final int EARM_CODE_WRONG_PASSWORD = 32;	  //密码错误


}
